﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Bdcs.Core.Entity
{
    /// <summary>
    /// System_Tables数据模型对象
    /// </summary>
    [Serializable]
    public partial class System_TablesMod
    {
        /// <summary>
        /// 初始化System_Tables数据模型对象
        /// </summary>
        public System_TablesMod()
        {
            
        }
        /// <summary>
        /// 初始化System_Tables数据模型对象并给所有字段赋值
        /// </summary>
        /// <param name="tablename">tablename</param>
        /// <param name="tabledesc">tabledesc</param>
        /// <param name="shortname">shortname</param>
        public System_TablesMod(string tablename,string tabledesc,string shortname)
        {
            //给tablename字段赋值
            this.Tablename = tablename;
            //给tabledesc字段赋值
            this.Tabledesc = tabledesc;
            //给shortname字段赋值
            this.Shortname = shortname;
        }
        
		//属性存储数据的变量
        private string _tablename;
        private string _tabledesc;
        private string _shortname;
        
        /// <summary>
        /// tablename
        /// </summary>
        public string Tablename
        {
            get { return this._tablename; }
            set { this._tablename = value; }
        }
        /// <summary>
        /// tabledesc
        /// </summary>
        public string Tabledesc
        {
            get { return this._tabledesc; }
            set { this._tabledesc = value; }
        }
        /// <summary>
        /// shortname
        /// </summary>
        public string Shortname
        {
            get { return this._shortname; }
            set { this._shortname = value; }
        }
        
        /// <summary>
        /// 对比两个System_Tables数据模型对象是否一致
        /// </summary>
        /// <param name="obj">要进行比对的System_Tables数据模型对象</param>
        /// <returns>返回是否一致，为true一致，为false不一致</returns>
        public override bool Equals(object obj)
        {
            //判断传入对象是否为null
            if (obj == null) return false;
            //将传入对象转换成System_Tables数据模型对象
            System_TablesMod system_TablesMod = obj as System_TablesMod;
            //判断是否转换成功
            if (system_TablesMod == null) return false;
            //进行匹配属性的值
            return
                //判断tablename是否一致
                this.Tablename == system_TablesMod.Tablename &&
                //判断tabledesc是否一致
                this.Tabledesc == system_TablesMod.Tabledesc &&
                //判断shortname是否一致
                this.Shortname == system_TablesMod.Shortname;
        }
        /// <summary>
        /// 将当前System_Tables数据模型对象转换成哈希码
        /// </summary>
        /// <returns>哈希值</returns>
        public override int GetHashCode()
        {
            //将System_Tables数据模型对象的属性进行按位异或运算处理得到哈希码并返回
            return
                //将tablename进行按位异或运算处理
                (this.Tablename == null ? 2147483647 : this.Tablename.GetHashCode()) ^
                //将tabledesc进行按位异或运算处理
                (this.Tabledesc == null ? 2147483647 : this.Tabledesc.GetHashCode()) ^
                //将shortname进行按位异或运算处理
                (this.Shortname == null ? 2147483647 : this.Shortname.GetHashCode());
        }
        /// <summary>
        /// 将当前System_Tables数据模型对象转换成字符串副本【仅显示在SQL中不能为空的列】
        /// </summary>
        /// <returns>字符串形式副本</returns>
        public override string ToString()
        {
            //将当前System_Tables数据模型对象转换成字符串副本
            return
                "[" +
                //将tablename转换成字符串
                this.Tablename + "," +
                //将tabledesc转换成字符串
                this.Tabledesc + "," +
                //将shortname转换成字符串
                this.Shortname +
                "]";
        }
    }
}
